package A01;

import java.util.Scanner;

public class D0602 {
    public static void main (String[] args) {
        Scanner scanner=new Scanner (System.in);
        String str=scanner.nextLine ();
        System.out.println (StrToInt (str));
    }

    public static int StrToInt(String str) {
        char[] ca=str.toCharArray ();
        if(str.isEmpty ()){
            return 0;
        }
        int symbol=1;
        if(ca[0]=='+'){
            symbol=1;
            ca[0]='0';
        }
        if(ca[0]=='-'){
            symbol=-1;
            ca[0]='0';
        }

        int sum=0;
        for (int i = 0; i < ca.length; i++) {
            if(ca[i]<'0'||ca[i]>'9'){
                sum=0;
                break;
            }
            sum=sum*10+ca[i]-'0';
        }

        return sum*symbol;
    }
}
